Add tests for ExtractAPIError.