Add sort_date to tests