fixing sms sync exception when period is blank & fixing tests