Fix JUnit test on Windows