test(noUnnecessaryConditions): add regression fixture for #10704 (#11350)