   (test-persistence "col-3" "id-c" {:events 3 :features 1})
   (test-persistence "col-3$nested" {:events 5 :features 3})
   (test-timeline "col-3" "id-c" {:timeline-current {:n 1}
-                                 :timeline {:n 2}})
+                                 :timeline {:n 2}
+                                 :timeline-changelog {:n-new 1 :n-change 2}}
+                 (:changelog-counts results))
   (test-timeline->extract (:extracts results) 3)
   (test-geoserver "col-3" 1))
 

  (test-persistence "col-2$nested" {:events 0 :features 0})
  (test-timeline "col-2" "id-b" {:timeline-current {:n 0}
                                 :timeline {:n 0}
                                 :timeline-changelog {}})
  (test-timeline->extract (:extracts results) 0)
  (test-geoserver "col-2" 0)
  (test-geoserver "col-2$nested" 0))

(defmacro defregressiontest [name file results-var & body]
  `(defregressiontest* ~name false ~file ~results-var ~@body))


(defn- test-persistence
  ([collection selectors] (test-persistence collection nil selectors))
