Added a mocha test