test for loop