adding some simple tests

needed a module which does exactly this, but was nervous about using it as there are no tests.  i’ve added a few tests using `mocha` and now feel much better about using this in the wild :)