test sms function