Fix for #8

Also fix the `npm test` script. `npm` will use local mocha automatically. Also the `test_*` does not work for me on windows.