Please use a custom Settings class, just for tests.  Then those setter methods would no longer be necessary.