Updated test to use SortedList.