connectionManager: new API

Change-Id: I96eb3ed8d0d4f82adb28c8d47a5751bc3f603560
diff --git a/tests/connectionManager.cpp b/tests/connectionManager.cpp
index 98f93fa..4cd62da 100644
--- a/tests/connectionManager.cpp
+++ b/tests/connectionManager.cpp
@@ -66,7 +66,7 @@
     std::shared_ptr<std::thread> ioContextRunner;
     // std::thread ioContextRunner;
     std::shared_ptr<Logger> logger;
-    std::unique_ptr<IceTransportFactory> factory;
+    std::shared_ptr<IceTransportFactory> factory;
 
 private:
     std::unique_ptr<ConnectionHandler> setupHandler(const std::string& name);
@@ -155,9 +155,9 @@
     config->dht = h->dht;
     config->id = h->id;
     config->ioContext = h->ioContext;
-    config->factory = factory.get();
+    config->factory = factory;
     config->logger = logger;
-    config->certStore = h->certStore.get();
+    config->certStore = h->certStore;
 
     std::filesystem::path currentPath = std::filesystem::current_path();
     std::filesystem::path tempDirPath = currentPath / "temp";