Added unit tests with Mocha.