                                      (map-indexed #(vector (:file-beg %2)
                                                            %1))
                                      (into {}))]
-          (is (= (.n-ref csi) (.n-ref ^CSI computed)))
-          (is (= (.min-shift csi) (.min-shift ^CSI computed)))
-          (is (= (.depth csi) (.depth ^CSI computed)))
-          (is (= (.aux csi) (.aux ^CSI computed)))
+          (is (= (.n-ref csi) (.n-ref computed)))
+          (is (= (.min-shift csi) (.min-shift computed)))
+          (is (= (.depth csi) (.depth computed)))
+          (is (= (.aux csi) (.aux computed)))
           (is (= (update (.bidx csi) 24 dissoc 37450)
-                 (update (.bidx ^CSI computed) 24 dissoc 37450)))
+                 (update (.bidx computed) 24 dissoc 37450)))
           (doseq [chr (keys (.loffset csi))]
             (doseq [beg (keys (get (.loffset csi) chr))]
               (is (or (= (get-in (.loffset csi) [chr beg])
-                         (get-in (.loffset ^CSI computed) [chr beg]))
+                         (get-in (.loffset computed) [chr beg]))
                       (check-loffset file-offsets
                                      file-offset-index
-                                     beg (get-in (.loffset ^CSI computed)
+                                     beg (get-in (.loffset computed)
                                                  [chr beg]))))))))))
   (testing "bcf"
     (with-before-after {:before (prepare-cavia!)}
       (with-open [r (vcf/reader test-large-bcf-file)]
         (let [file-offsets (vcf/read-file-offsets r)
               csi ^CSI (csi/read-index test-large-bcf-csi-file)
-              computed
+              computed ^CSI
               (csi/offsets->index file-offsets 14 5
                                   {:variant-file-type :bcf
                                    :names (mapv :id

      (with-open [r (vcf/reader test-large-vcf-file)]
        (let [file-offsets (vcf/read-file-offsets r)
              csi ^CSI (csi/read-index test-large-vcf-csi-file)
              computed
              (csi/offsets->index file-offsets 14 6
                                  {:variant-file-type :vcf
                                   :names (mapv :id

  (testing "vcf"
    (with-open [r (vcf/reader test-vcf-various-bins-gz-file)]
      (let [file-offsets (vcf/read-file-offsets r)
            computed ^CSI
            (csi/offsets->index file-offsets 14 6
                                {:variant-file-type :vcf
                                 :names (mapv :id
