test for for loop