added sorting test