Implemented mocha test