Test for Query on Array and String