added duplicate index test and changed newIndex tests to be more verbose