tests BUGFIX do not link dynamic library

Link yangobj directly instead.
diff --git a/tests/plugins/CMakeLists.txt b/tests/plugins/CMakeLists.txt
index 1e21824..addcb50 100644
--- a/tests/plugins/CMakeLists.txt
+++ b/tests/plugins/CMakeLists.txt
@@ -10,9 +10,8 @@
         list(APPEND PLUGIN_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/${PLUGIN_SOURCE})
     endforeach()
 
-    add_library(${PLUGIN_NAME} MODULE ${PLUGIN_SOURCES})
+    add_library(${PLUGIN_NAME} MODULE ${PLUGIN_SOURCES} $<TARGET_OBJECTS:yangobj>)
     set_target_properties(${PLUGIN_NAME} PROPERTIES PREFIX "")
-    target_link_libraries(${PLUGIN_NAME} yang)
 endfunction(ly_add_plugin)
 
 ly_add_plugin(NAME invalid SOURCES invalid.c)