Ensure --test failures raise an error