Added complexQueryTest, hopefully it'll help