Add retry_count to serialization tests