Add encoded message test.