Added mocha tests. this does not work yet