Codecs implemented
Add generic test for message encoding