fix unit tests on windows

This will also make sure unit tests run when mocha is not installed globally