Fix test coverage for wrapped key encoding.