Add tests. Extract static utility methods to create a SettingsUtils class that can be used by extension modules.