fix bug in serialization sort test