added basic mocha tests. see #18