Fix tests in error on windows