Added Mocha tests