test.js fixes for windows