Added more tests for the sort implementations