added some tests for getindex, sort