Fixed test and dependencies on windows