Fixes the new testcase for PR #8230 Upstream-commit: 7c1aee62910405720f977e5777fafefc662dc175 Component: engine