key serializer/deserializer tests