Loops: fix tests