Refactor and fix up test for SmsSetting model
[Closes #24, #35]