config: Add optional setting to config values and improve tests.