Add ConfigRestorer and use it instead of setup_test_config() directly.