Added DaemonTask tests