Fix test script to adjust for new for loop behavior
Use a syntax for non-sinked for loop that also still works in star