add sms function with unit test method