Allow use of DOI testmode

Also standardize naming of doi.service.connected setting.