                    {:FIELD_ID 3 :ROW 6 :GENE "GENEB"}
                    {:FIELD_ID 3 :ROW 6 :GENE "GENEC"}
                    {:FIELD_ID 3 :ROW 7 :GENE "GENED"}
-                   {:FIELD_ID 3 :ROW 8 :GENE "GENEE"}]))))))
+                   {:FIELD_ID 3 :ROW 8 :GENE "GENEE"}])))
+      (ct/is (= data ["probe1" "probe5" "probe2" "probe6" "probe3" "probe7" "probe4" "probe8" "probe9"])))))
 
 (defn detect-cgdata-clinical [db]
   (ct/testing "detect cgdata clinical"

          fields (cdb/run-query db {:select [:*] :from [:field]})
          probes (cdb/run-query db {:select [:value] :from [:code]})
          positions (cdb/run-query db {:select [:*] :from [:field_position]})
          genes (cdb/run-query db {:select [:*] :from [:field_gene]})]

      (ct/is (= probemap [{:NAME "probes"}]))
      (ct/is (= (set probes)

                                  :left-join [:feature [:= :field_id :field.id]
                                              :code [:= :feature.id :feature_id]]
                                  :order-by [:ordering]})
          probes (cdb/run-query db {:select [:*] :from [:field]})
          data (cdb/fetch db [{:table "matrix"
                               :columns ["probe1" "probe2"]
                               :samples ["sample2" "sample1"]}])]
      (ct/is (= exp [{:NAME "matrix"}]))
      (ct/is (= samples
                [{:NAME "sample1"}
