Refactored sns mock