     exclusions (assoc-in [:test :exclusions] exclusions)))
 
 (defn test-backend
-  "Run tests once for the backend (it uses clojure.test)."
+  "Run tests once for the backend (uses clojure.test)."
   [options]
   (comp (with-pass-thru _
-          (util/dbug "Options:\n%s\n" (with-out-str (pprint options)))
+          (util/dbug "[test-backend] options:\n%s\n" (with-out-str (pprint options)))
           (apply-options! options)
           (require 'adzerk.boot-test))
         (with-pre-wrap fs
           (let [test (resolve 'adzerk.boot-test/test)
-                middleware (apply test (flatten (seq (:test options))))]
+                middleware (apply test (mapcat identity (:test options)))]
             ((middleware identity) fs)))))<% endif %>
 <% if any frontend %>
 (defn build-frontend

  some namespaces."
  [options]
  (comp (with-pass-thru _
          (util/dbug "Options:\n%s\n" (with-out-str (pprint options)))
          (apply-options! options)
          (require 'crisptrutski.boot-cljs-test))
        (with-pre-wrap fs
          (let [test-cljs (resolve 'crisptrutski.boot-cljs-test/test-cljs)
                middleware (apply test-cljs (flatten (seq (:test-cljs options))))]
            ((middleware identity) fs)))))<% endif %>

   Repl in a pod, inspired by https://github.com/juxt/edge"
  [options]
  (let [pod-env (dev-backend-pod-env (:env options))
        pod (future (pod/make-pod pod-env))
        {:keys [port init-ns]} (:repl options)]
    (comp
     (with-pass-thru _
       (util/dbug "[dev-backend] options:\n%s\n" (with-out-str (pprint options)))
       (util/dbug "[dev-backend] pod env:\n%s\n" (with-out-str (pprint pod-env))))
     (with-pass-thru _
       (pod/with-eval-in @pod
         (require '[boot.pod :as pod])
