added loop test case