Added daemon unit test.