Added tests for api.http_call and api.request.