Clean up the output of the C API test code.