Test and fix count query filters.