fix serialization test