Add tests for startDaemons and stopDaemons