Added mocha tests.