add modules_manager and its test case.