Fix spec.
Fix tests on windows.