script to run the tests in a loop