swithced to numeric channel types; unit tests for addChannel and fixed bugs; fixed unit tests for get/setScriptCfg