tester for loop