Improve error handling while getting test results.