           response (handler request)]
       (is (= (:status response) 3000))))
 
-  (testing "Jws token wrongdata - onerror handler called when provided"
+  (testing "Jws token wrongdata with onerror handler called when provided"
     (let [request (make-jws-request jws-data "wrong-key")
           onerror (fn [_ _] {:status 3000})
           backend (token/jws-backend {:secret jws-secret

          response (handler request)]
      (is (= (:status response) 401))))

  (testing "Jwe token authorization - authenticated but unathorized thrown yields 403"
    (let [request (make-jwe-request {:userid 1} jwe-secret)
          handler (-> (fn [req] (throw-unauthorized))
                      (wrap-authorization jwe-backend)

      (is (= (:status response) 401))
      (is (= (:body response) "Unauthorized"))))

  (testing "Jws token authorization with authenticated but unathorized thrown yields 403"
    (let [request (make-jws-request {:userid 1} jws-secret)
          handler (-> (fn [req] (throw-unauthorized))
                      (wrap-authorization jws-backend)
