finalized the quicksort test