added script to run the test script in a loop