added tests for httpclient/encoderequest