         gran4 (d/ingest "CMR_PROV1" (dg/granule coll1 {:platform-refs [pr3]}))
         gran5 (d/ingest "CMR_PROV1" (dg/granule coll1 {:platform-refs [pr4]}))
         gran6 (d/ingest "CMR_PROV1" (dg/granule coll1 {:platform-refs [pr5]}))
-        gran7 (d/ingest "CMR_PROV1" (dg/granule coll2 {}))]
+        gran7 (d/ingest "CMR_PROV1" (dg/granule coll2 {}))
+        gran8 (d/ingest "CMR_PROV1" (dg/granule coll2 {:platform-refs [pr6]}))]
 
     (index/flush-elastic-index)
 


(deftest search-by-sensor-short-names
  (let [s0 (dc/sensor "sensor_Inherit")
        i0 (dc/instrument "collection_instrument" s0)
        p0 (dc/platform "collection_platform" i0)
        s1 (dg/sensor-ref "sensor_Sn A")
        s2 (dg/sensor-ref "sensor_Sn a")
        s3 (dg/sensor-ref "sensor_SnA")
        s4 (dg/sensor-ref "sensor_Snx")
        i1 (dg/instrument-ref "instrument_1" s1)
        i2 (dg/instrument-ref "instrument_2" s2)
        i3 (dg/instrument-ref "instrument_3" s3)
        i4 (dg/instrument-ref "instrument_4" s4)
        i5 (dg/instrument-ref "instrument_5" s1 s2)
        p1 (dg/platform-ref "platform_1" i1)
        p2 (dg/platform-ref "platform_2" i2)
        p3 (dg/platform-ref "platform_3" i3)
        p4 (dg/platform-ref "platform_4" i4)
        p5 (dg/platform-ref "platform_5" i5)
        p6 (dg/platform-ref "platform_6" i1 i2)
        coll1 (d/ingest "CMR_PROV1" (dc/collection {}))
        coll2 (d/ingest "CMR_PROV1" (dc/collection {:platforms [p0]}))
        gran1 (d/ingest "CMR_PROV1" (dg/granule coll1 {:platform-refs [p1]}))

        pr2 (dg/platform-ref "platform_Sn a")
        pr3 (dg/platform-ref "platform_SnA")
        pr4 (dg/platform-ref "platform_Snx")
        pr5 (dg/platform-ref "platform_ONE")
        coll1 (d/ingest "CMR_PROV1" (dc/collection {:platforms [p1 p2 p3 p4]}))
        coll2 (d/ingest "CMR_PROV1" (dc/collection {:platforms [p0 p01]}))
        gran1 (d/ingest "CMR_PROV1" (dg/granule coll1 {:platform-refs [pr1]}))
        gran2 (d/ingest "CMR_PROV1" (dg/granule coll1 {:platform-refs [pr1 pr2]}))
        gran3 (d/ingest "CMR_PROV1" (dg/granule coll1 {:platform-refs [pr2]}))
        gran4 (d/ingest "CMR_PROV1" (dg/granule coll1 {:platform-refs [pr3]}))
        gran5 (d/ingest "CMR_PROV1" (dg/granule coll1 {:platform-refs [pr4]}))
        gran6 (d/ingest "CMR_PROV1" (dg/granule coll2 {}))
        gran7 (d/ingest "CMR_PROV1" (dg/granule coll2 {:platform-refs [pr5]}))]

    (index/flush-elastic-index)

