Add sorting tests.