added tests for getMiddle and separated tests for insertionSort