Added mocha tests