updated testIndices.py to sara's version