updated sorting tests