Tests for full decode/encode