revert jsdoc, add tests docs