Refactor mapper application to enable unit tests

Change-Id: I58cac8879f93ce49bfb654a1bf559d7f77b5b486
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/phosphor-ldap-mapper/main.cpp b/phosphor-ldap-mapper/main.cpp
index 15c9802..e0d2255 100644
--- a/phosphor-ldap-mapper/main.cpp
+++ b/phosphor-ldap-mapper/main.cpp
@@ -9,7 +9,8 @@
     sdbusplus::server::manager::manager objManager(
         bus, phosphor::user::mapperMgrRoot);
 
-    phosphor::user::LDAPMapperMgr mapperMgr(bus, phosphor::user::mapperMgrRoot);
+    phosphor::user::LDAPMapperMgr mapperMgr(bus, phosphor::user::mapperMgrRoot,
+                                            LDAP_MAPPER_PERSIST_PATH);
 
     // Create a directory to persist errors.
     std::experimental::filesystem::create_directories(LDAP_MAPPER_PERSIST_PATH);