Added unit tests for SMSAPI adapter.