                      (generate-commands events)))
 
               (testing "> GIS user is present"
-                (let [events (conj events user-is-present-event)]
+                (let [events (conj events gis-user-is-present)]
                   (is (empty? (generate-commands events)))
 
                   (testing "> GIS user password changed"
-                    (let [events (conj events (assoc user-created-event :gis-user/password "new password"))]
+                    (let [events (conj events (assoc gis-user-created :gis-user/password "new password"))]
                       (is (= [{:command/type :db-admin.command/ensure-gis-user-present
                                :command/time test-time
                                :command/system "territory-bro.db-admin"

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

             (generate-commands events)))

      (testing "> GIS schema is present"
        (let [events (conj events gis-schema-is-present)]
          (is (empty? (generate-commands events)))

          ;; TODO: there could be a different process manager for dealing with GIS users
          (testing "> GIS user created"
            (let [events (conj events gis-user-created)]
              (is (= [{:command/type :db-admin.command/ensure-gis-user-present
                       :command/time test-time
                       :command/system "territory-bro.db-admin"
