Test this result and return Ok or Err.
Result<T> test(bool Function(Result<T>) testFunction, String failedTestMsg) => testResult(testFunction, this, failedTestMsg);