Also set DX_CLI_WD to usable default
Write test without chdir.

This avoids having the coverage files dumped in the working directory of
the "dx" process and interfering with the directory tree validation.
Revert "Write test without chdir."

This reverts commit 165a8f316e0dabd8f52095dfb2ed8ab0c9d0704a.