            (accumulate-testsuite-failures [[(a-testsuite "suite"
                                                          (a-testsuite "nested suite" (a-testcase "a case" :fail)))]
                                            [(a-testsuite "suite"
-                                                         (a-testsuite "nested suite" (a-testcase "another case" :fail)))]]))))
-
+                                                         (a-testsuite "nested suite" (a-testcase "another case" :fail)))]])))))
+(deftest test-accumulate-testsuite-failures-as-list
   (testing "accumulate-testsuite-failures-as-list"
     (is (= []
            (accumulate-testsuite-failures-as-list [])))

           (accumulate-testsuite-failures-as-list [[(a-testsuite "suite"
                                                                 (a-testsuite "nested suite" (a-testcase "a class" "a case" :fail)))]
                                                   [(a-testsuite "suite"
                                                                 (a-testsuite "nested suite" (a-testcase "a class" "another case" :fail)))]]))))

  (testing "average-testcase-runtime"
    (is (= []
           (average-testcase-runtime [])))

             :build-id "another-failed-run-id"
             :latest-failure (:start another-failed-build-input-1)
             :flaky-count 1}]
           (flaky-testcases-as-list {"passed-run-id" passed-build-input-1
                                     "failed-run-id" failed-build-input-1
                                     "another-failed-run-id" another-failed-build-input-1}
                                    (dummy-test-lookup {"failed-run-id" [(a-testsuite "a suite"
                                                                                      (a-testcase "a class" "the testcase" :fail))]
                                                        "another-failed-run-id" [(a-testsuite "another suite"
                                                                                              (a-testcase "another class" "another testcase" :fail))]}))))
    (is (= [{:testsuite ["a suite"]
             :classname "a class"
             :name "the testcase"
