Fixes test environment clean bug in TestClientDaemonConfig and TestDaemonCmdManagerConnection.