formatTestResult() should directly take a Result