Added Mocha.js tests with Chai.js asserts