fixed error reporting for api tests.