test for creating index