add test for sorting a list