Added getIndex test cases. Added stuff to gitignore
Added getIndexs methods and fixed test case to work