Fix tests to make them pass on non-Unix, too.