Improve tests for .sort()