Added mocha test.