Adding unit tests for ClientHttpConnectionFactory