Check tests for failures and output error msg