Adds some test for Message::toBuffer()