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