make test runnable from npm test on windows

by the way, I got 33 tests failing on windows