tests: Enable test generic_states on Windows

... and drop needless unistd.h dependency
6 jobs for ugly-tests-windows in 29 minutes and 9 seconds (queued for 2 seconds)