Add tests for _http_request