testing sort_by_status