Modified Config->addHostname() to save before returning itself.
Test to prevent overwriting a Config hostname entry.