Make tests work on windows and linux