tests for quicksort