Exit with an exception if the tests fail