jsdoc, refactor traverse, added triggerable test