Add tests of sort