Exit with a non-zero status code if tests failed