Add tests for useCurrentHost and disableGlobalOptions

Would that allow to verify that the config has been correctly updated? Could you test explicitly for the config values?