Remove returnRankAtIndex function update the tests to reflect its removal.