Add tests for SettingsController