Tests for run_mode 'disabled' and 'service'