Added zero terms query constants and tests on match