Added tests, and mocha / chai dependency