Exit main with code 1 if a test fails