Fixing DaemonWorkerTester to support lifecycle.