updated test_sortedDict