Added sort tests