add serialization test