add sorting tests