http client using libcurl, unit test