Fixed the test as well as the range filter on sorted column