Adding tests for table index creation