add test for loop setting