add test cases for sorting algorithms