added function to define indexes when the test table is created.