Add basic getIndex test