Wait for test execution to finish