Add unit tests for guard.n(). Tweak names and jsdoc