This should use `failureResultOf` and failure.check.

Same with the next test.