Added a failing test for the key encoding problem.