raise an exception if any tests fail instead of returning the result