 
 (deftest interceptors-tests
   (let [counter (atom 0)
-        p1 (promise)
-        p2 (promise)
-        p3 (promise)
-        p4 (promise)]
+        p1 (promise)]
     (letfn [(interceptor [_ type continuation]
-              (deliver p1 (swap! counter inc))
+              ;; (println "interceptor:init", type)
+              (swap! counter inc)
               (continuation)
-              (deliver p2 (swap! counter inc)))
-
+              (swap! counter inc))
             (handler2 [context]
-              (deliver p3 (swap! counter inc))
               (ct/delegate context))
-
             (handler3 [context]
-              (deliver p4 (swap! counter inc))
+              (deliver p1 nil)
               "hello world")]
       (with-server {:handler (ct/routes [[:interceptor interceptor]
                                          [:any handler2]
                                          [:any handler3]])}
         (let [response (client/get base-url)]
+          (is (nil? (deref p1 1000 nil)))
           (is (= (:body response) "hello world"))
           (is (= (:status response) 200))
-          (is (= (deref p1 1000 nil) 1))
-          (is (= (deref p2 1000 nil) 4))
-          (is (= (deref p3 1000 nil) 2))
-          (is (= (deref p4 1000 nil) 3)))))))
+          (is (= @counter 6)))))))
 
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    (let [p (promise)
          app (ct/routes [[:any (hs/body-params)]
                          [:any #(do
                                   (deliver p (:body %))
                                   "hello world")]])]
      (with-server {:handler app}
        (let [response (client/post base-url {:form-params {:foo "bar"}})]

    (let [p (promise)
          app (ct/routes [[:any (hs/body-params)]
                          [:any #(do
                                   (deliver p (:data %))
                                   "hello world")]])]
      (with-server {:handler app}
        (let [response (client/post base-url {:body (json/generate-string {:foo "bar"})
