Fix getIndex tests for missing pagination_sort param