Enable npm test command

Currently, for running tests we expect mocha to be installed and launched by calling `mocha test.js`. 

I've added mocha as dev dependencies and a run test script in `package.json` to enable launching tests with `npm test` command, right after `npm install`.