clean up platform tests and error handling on windows