removes the test main loop