add tests for Kryo serialization