CommandManager : add `exec` method with test case