tests for .get_api_response