[ModuleManager] move test back and use a mocked application object