Added test with mocha