Fix test case for cwd