Added a timer between each test and updated stop function