Fixing InternalStreamConnectionTest so that it works even if SSL is enabled