added test for current infinite loop