fixed sort tests