Query eval doesn't need an index instance; automatic index creation + some tests for queries