Fix tests to be portable to Windows