Small fixes to index.py
Add some tests for the Index class