Added more tests for sorting