Fix the test_result tests to use the new APIs