CXX-392 Remove use of getIndexes in tests