fix test for creating index