get-index has a unit test