Added sorting test