New testcase to check we pass boolean query correctly