Add ability to write the mock data and test results for API unit tests