ensure that getNumberOfFailures never returns an error