Return error if one of the tests fail