CHanged textquery

now it returns an arraylist and verifies that it contains all the search
queries