Splitting encoder tests in encode/decode.