refine sorting tests