Add unit tests for HttpClient.