Added mocha testing