simplified query with TTL test
added indexes from previous test
Merge pull request #2184 from mesutcelik/queryAdvancedTest

simplified query with TTL test