Refactor test code.
Add insertSort.