Fix LoopAndIf tests