Fixed SettingStore to use backend module in self, for more testable.
Added a test for SettingStore.