Fixed renamed func in index_test

Looks like a func rename didn't get applied to the test file included. This fixes it, and tests pass.