make test cases pass for insertion sort list