re-organizing daemon_test