Fixed another bug in serialization test.