Proper error handling between failing tests and failing process