functions: add jsdoc, add test for noop