 
        (testing "given a valid time constraint, return the correct granules"
          (let [time-constraint "2016-01-02T00:00:00Z,2016-01-04T00:00:00Z"
-               system-context (urs-context)
+               system-context (system/context)
                result (->> (jobs/email-subscription-processing system-context time-constraint)
                            (first)
                            (second))]


       (testing "Second run finds only granules created since the last notification"
         (let [gran2 (create-granule-and-index "PROV1" coll1 "Granule2")
               response (->> (urs-context)
                             (jobs/email-subscription-processing)
                             (map #(nth % 1))
                             flatten

                                              :granule_identifier    {:access_value {:include_undefined_value true
                                                                                     :min_value               1
                                                                                     :max_value               50}}})
             _              (echo-util/grant (system/context)
                                             [{:user_type   :registered
                                               :permissions [:read]}]
                                             :catalog_item_identity
