Adds tests for sending messages