added basic mocha tests. see #18

Need to hook with travisCI for this to work in CI mode ;_)