Added tests for meta message encoders / decoders and fixed some bugs.