Added more test condition to testIndexWithFactory