another test case for infinite loop