Added unit mocha unit test