BUG/TST: test fixes for windows compat