Bugfix for test_index proper usage