Exit with error when test fails