[daemon] Testcases for daemon