Tests for insertion sort