UserManager: Fix unit test cases

User_mgr and ldap_mapper testcases are failing with D-bus errors.
This commit fixes both testcases by using mocked sdbus.

Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
Change-Id: I3fcabeb1781c938affa11a1370b107d628242374
diff --git a/test/Makefile.am b/test/Makefile.am
index 4f4f9a1..fc6b72e 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -37,7 +37,8 @@
 check_PROGRAMS += ldap_mapper_test
 ldap_mapper_test_CPPFLAGS = $(cppflags)
 ldap_mapper_test_CXXFLAGS = $(cxxflags)
-ldap_mapper_test_LDFLAGS  = $(ldflags)
+ldap_mapper_test_LDFLAGS  = $(ldflags) \
+                            -lgmock
 ldap_mapper_test_SOURCES  = ldap_mapper_test.cpp
 ldap_mapper_test_LDADD  = $(top_builddir)/phosphor-ldap-mapper/ldap_mapper_entry.o \
                           $(top_builddir)/phosphor-ldap-mapper/ldap_mapper_mgr.o \