Make tests work on Mac OS and Windows