added test code for aws-snsclient