                                     :items
                                     first
                                     :concept_id))
-           _ (echo-util/grant (urs-context)
+           _ (echo-util/grant (system/context)
                               [{:group_id user2-group-id
                                 :permissions [:read]}]
                               :catalog_item_identity


       (testing "First query executed does not have a last-notified-at and looks back 24 hours"
         (let [gran1 (create-granule-and-index "PROV1" coll1 "Granule1")
               results (->> (urs-context)
                            (jobs/email-subscription-processing)
                            (map #(nth % 1))
                            flatten


       (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 (system/context)
               result (->> (jobs/email-subscription-processing system-context time-constraint)
                           (first)
                           (second))]
