unit tests for SMS class