                              (generate-commands events)))
 
                       (testing "> GIS user is absent"
-                        (let [events (conj events user-is-absent-event)]
+                        (let [events (conj events gis-user-is-absent)]
                           (is (empty? (generate-commands events))))))))))))))))
 
 (deftest migrate-tenant-schema-test
   (let [spy (spy/spy)
         injections {:now (constantly test-time)
                     :migrate-tenant-schema! (spy/fn spy :migrate-tenant-schema!)}]
-    (is (= [schema-is-present-event]
+    (is (= [gis-schema-is-present]
            (db-admin/handle-command! {:command/type :db-admin.command/migrate-tenant-schema
                                       :command/time test-time
                                       :command/system "test"

  (let [spy (spy/spy)
        injections {:now (constantly test-time)
                    :ensure-gis-user-present! (spy/fn spy :ensure-gis-user-present!)}]
    (is (= [user-is-present-event]
           (db-admin/handle-command! {:command/type :db-admin.command/ensure-gis-user-present
                                      :command/time test-time
                                      :command/system "test"

(def cong-id (UUID. 0 1))
(def user-id (UUID. 0 2))
(def test-time (Instant/ofEpochSecond 42))
(def congregation-created {:event/type :congregation.event/congregation-created
                           :event/version 1
                           :congregation/id cong-id
                           :congregation/name "Cong1 Name"
                           :congregation/schema-name "cong1_schema"})
(def gis-user-created {:event/type :congregation.event/gis-user-created
                       :event/version 1
                       :congregation/id cong-id
                       :user/id user-id
                       :gis-user/username "username123"
                       :gis-user/password "password123"})
(def gis-user-deleted {:event/type :congregation.event/gis-user-deleted
                       :event/version 1
                       :congregation/id cong-id
                       :user/id user-id
                       :gis-user/username "username123"})
(def gis-schema-is-present {:event/type :db-admin.event/gis-schema-is-present
                            :event/version 1
                            :event/transient? true
                            :event/system "test"
                            :event/time test-time
                            :congregation/id cong-id
                            :congregation/schema-name "cong1_schema"})
(def gis-user-is-present {:event/type :db-admin.event/gis-user-is-present
                          :event/version 1
                          :event/transient? true
                          :event/system "test"
                          :event/time test-time
                          :congregation/id cong-id
                          :user/id user-id
                          :gis-user/username "username123"})
(def gis-user-is-absent {:event/type :db-admin.event/gis-user-is-absent
                         :event/version 1
                         :event/transient? true
                         :event/system "test"
                         :event/time test-time
                         :congregation/id cong-id
                         :user/id user-id
                         :gis-user/username "username123"})

(defn- apply-events [events]
  (testutil/apply-events db-admin/projection events))
