As this is related to tests it could be moved to `baseapi.BaseAPI`, like the comment above.