Added Mocha testing framework and tests