Return from tests in the case of an error