Changes a unit test which failed on windows for python version >=3.0