cwd_long test fix