Fix `cwd` test