Correctly propagate test status code