add test for windows and error