Fixes test environment clean.

Fixes test environment clean bug in TestClientDaemonConfig and TestDaemonCmdManagerConnection.