added test taht shows that StringQuery performs the correct query