Add tests for query or conditions
Add tests for query not conditions