     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 %>
(defn build-backend
  "Return a boot task for building the backend.

   The artifact is the result of (comp (aot) (uber) (jar)) but no target is
   appended."
  [options]
  (apply-options! options)
  (let [jar-name (get-in options [:jar :file])]
    (comp (with-pass-thru _
            (util/dbug "[build-backend] options:\n%s\n" (with-out-str (pprint options))))
          (version-file)
          (apply built-in/aot (mapcat identity (:aot options)))
          (apply built-in/uber (mapcat identity (:uber options)))
          (apply built-in/jar (mapcat identity (:jar options)))
          (built-in/sift :include #{(re-pattern jar-name)}))))

(defn dev-backend-pod-env
