ENH: Improve unittest for Windows