Made the test into a loop.