testing state hash serialization