Test index generation