Mock testing Control.daemon