Added: end2end test for while/repeat