     self))
 
 (defn- mock-status-system [response]
-  (c/system-map
-    :config (configuring/new-config {})
-    :metering (c/using
-                (metering/new-metering)
-                [:config])
-    :routes (routes/new-routes)
-    :app-status (c/using (app-status/new-app-status) [:config :routes])
-    :mock-status (c/using (map->MockStatusSource {:response response}) [:app-status])))
-
+  (assoc (serverless-system {})
+    :mock-status
+    (c/using (map->MockStatusSource {:response response}) [:app-status])))
 
 (deftest ^:unit should-show-applicationstatus
   (u/with-started [started (mock-status-system {:mock {:status  :ok


(deftest ^:unit should-have-system-status-for-env-config
  (with-redefs-fn {#'env/env {:host-name "foo" :host-port "1234"}}
    #(u/with-started [system (test-system {})]
                     (let [status (:app-status system)
                           system-status (:system (app-status/status-response-body status))]
                       (is (= (:hostname system-status) "foo"))

                              :status  200})))))

  (testing "use the configuration url"
    (u/with-started [started (serverless-system {:health-url "/my-health"})]
                    (let [handlers (rts/routes (:routes started))]
                      (is (= (handlers (mock/request :get "/my-health"))
                             {:body    "HEALTHY"
