Updated Tests for sorting