Fix TestDaemon