Return an error if some tests are failing