testing object serialization