Basic unit test for sending a message