running the test in a loop