              result (data/get-find db coll query)]
         (> (:total result) limit ) => true
         (:size result) => limit
-        (.size (:data result)) => limit)))
+        (count (:data result)) => limit)))
 
   (facts "about get-aggregation"
 


    (fact "get-datasets returns sequence of maps"
      (let [ds (data/get-datasets)]
        (>= (.size ds) 1) => true
        (map :name ds) => (contains ["integration_test"] :gaps-ok)))

    (fact "get-metadata returns metadata for a dataset"

            query_result (:result result)]
        (:size query_result) => 3
        (:total query_result) => 3
        (count (:data query_result)) => 3
        (:data query_result) => [{:sum_tax_returns 15, :count_tax_returns 5, :min_tax_returns 1, :max_tax_returns 5, :state_abbr "NC"},
                                 {:sum_tax_returns 65, :count_tax_returns 5, :min_tax_returns 11, :max_tax_returns 15, :state_abbr "NY"},
                                 {:sum_tax_returns 40, :count_tax_returns 5, :min_tax_returns 6, :max_tax_returns 10, :state_abbr "PA"}])))
