Add a wait in test_sms to address intermittent failures