refactoring ConfMgr class
add unittests