use `sinon.assert.CalledWith(ActivityHandler.onSmsReceived, newMessage)` and you don't need `onSmsReceivedSpy` anymore