Test Kryo serializer.