Add test for write message

Yes, i know it is a simple test. But, it adds the ability to make sure that
the siple sendMessage method is working.