Add integration test for sending a message