Add test for conversion of buffers to messages.