added functions for stopping the test