                   [:one (range 0 4) :summary]])))))
 
 (deftest collapse-test
-  (is (= [[:genres 0 :titles [0 1] [:name :rating]]]
+  (is (= [[:genres 0 :titles [(range 0 2)] [:name :rating]]]
          (collapse [[:genres 0 :titles 0 :name]
                     [:genres 0 :titles 0 :rating]
                     [:genres 0 :titles 1 :name]
                     [:genres 0 :titles 1 :rating]])))
-  (is (= [[:genres 0 :titles [0 1] [:name :rating]]]
+  (is (= [[:genres 0 :titles [(range 0 2)] [:name :rating]]]
          (collapse [[:genres 0 :titles 0 [:name :rating]]
                     [:genres 0 :titles 1 :name]
                     [:genres 0 :titles 1 :rating]]))))

                           [:video [0 (range 5 8)] :title]]))))

(deftest pathsets-test
  (is (= [[:one [:two :three]]
          [:one "four" [0 1]]]
         (pathsets {:one {:two leaf
                          :three leaf
                          "four" {0 leaf

                                           3 {:summary leaf}}}}))))
  (testing "pathmap that has overlapping branch and leaf nodes"
    (is (= [[:lolomo]
            [:lolomo [(range 13 15) :summary]]
            [:lolomo [(range 15 18)] [:summary :rating]]
            [:lolomo [(range 13 15)] :summary]]
           (length-tree-pathsets {1 {:lolomo leaf}
                                  2 {:lolomo {:summary leaf
                                              13 leaf
