tests and algorithms for insertion and merge sort
modify some tests with more descriptive fail messages