Added failing test for encoding