test truncate function