Test queries on boolean fields