       (is (= expected
              (->> (parse-field field)
                   (get-in (:data res))
-                  (map :value))))
+                  (map :value)))
+          (error-helper-msg prepared))
       (check-from-to from to))))
 
 (defn- to-granularity-first-day

            1)
        "[from to[ should not exceed one year")))

(defn- test-cardinality
  "test one field cardinality, examples are already created."
  [examples entity field]
  (testing (format "cardinality %s %s" entity field)
    (let [expected (-> (normalized-values examples field)
                       set
                       count)
          _ (assert (pos? expected))
          {{:keys [from to]} :filters
           :as res} (cardinality entity

    (doall
     (repeatedly n (fn [] (merge base-doc
                                 (g/generate enumerable-schema
                                             {s/Str string-generator})
                                 (generate-date-fields date-fields)))))))

(defn test-metric-routes
