Adding the test for #sort