Fix test_sms.py

For issue #1101

v1-train -> Merge.
master -> Test & merge.