Created tests/daemonTest.py to test code in daemon.py