use `npm test` to run test scripts

The npm's [test](https://npmjs.org/doc/test.html) command is the standard way to run tests on an npm package. Also the args for mocha are moved into mocha.opts so that long command doesn't need to be used.