Testing Kryo for closure serializer