 
 ;; valid sessionid
 (let [sessionid (.toString (java.util.UUID/randomUUID))
-      user-id (test-data/user->id :rasta)]
+      user-id (user->id :rasta)]
   (assert sessionid)
   (assert user-id)
   ;; create a new session

            [metabase.api.common :refer [*current-user-id* *current-user*]]
            [metabase.middleware.auth :refer :all]
            [metabase.models.session :refer [Session]]
            [metabase.test-data :as test-data]
            [metabase.util :as util]
            [ring.mock.request :as mock]))


;;;;  ===========================  TEST wrap-sessionid middleware  ===========================



;; with valid user-id
(let [{:keys [id email] :as user} (fetch-user :rasta)]
  (assert user)
  (expect
    {:userid id
