Fixed tests on MS Windows