bugfix for #261
fixed test to handle new rank-index function
Merge pull request #262 from etosch/master

bugfix for #261