Add tests for api_types.