changed test and added quick sort