Added functionality to run tests multiple times