Updated unit test for sort change