fix assert serializing test