add the module manager in mngr and unit tests