External sorting: add tests.