fixed test to handle new rank-index function