Adding test for indexing query