auto test case modified with looping changes