Added some mocha tests

Too lazy to write sensible stuff.