Test smart_truncate