Add a test for loop seek behavior