Add `addConsoleHandler` in the ScriptHandlerMgr for Console auto test.