Query Performance Tests - The word generation for the later search with queries is changed.

The pull request contains changes to the perf. tests for the Queries. The search word generation and usage in performing queries is changed.