Fixed HostAndPort for ssl connections and test cases