Fix serialization test