Added Mocha unit test