Added tests via mocha and changed dependencies.