Add more tests for expected encode failures.