add tests for find_index
change the definition of a sorter to something that takes all the args that index.sort might have otherwise, coverage