add support for (condname, indexfunction) input syntax
update demo code
toggle test block from cli argument