Use HttpClient for HTTP request + add tests