                  [:containing-class "[fF]oo"                [3]]]]
           (testing (format "regex query on field '%s'" field)
             (let [expected  (expected-resource-events
-                              (kitchensink/select-values basic-events-map matches)
-                              basic)
+                             (kitchensink/select-values basic-events-map matches)
+                             basic)
                   query     ["~" (name field) value]
                   actual    (resource-events-query-result version query)]
               (is (= actual expected)
-                (format "Results didn't match for query '%s'" query))))))
+                  (format "Results didn't match for query '%s'" query))))))
 
       (testing "negated regex queries"
         (doseq [[field value matches]

            (testing (format "status %s resource-title %s" status-order title-order)
              (let [expected (raw-expected-resource-events (select-values expected-events) basic4)
                    actual   (:result (raw-resource-events-query-result
                                        version
                                        [">" "timestamp" 0]
                                        {:order-by [[:status status-order]
                                                    [:resource-title title-order]]}))]
                (is (= actual expected)))))))

      (testing "offset"
        (doseq [[order expected-sequences] [[:ascending  [[0 [10 11 12]]
                                                         [1 [11 12]]
                                                         [2 [12]]
                                                         [3 []]]]
                                            [:descending [[0 [12 11 10]]
                                                         [1 [11 10]]
                                                         [2 [10]]
                                                         [3 []]]]]]
          (testing order
            (doseq [[offset expected-events] expected-sequences]
              (let [expected (raw-expected-resource-events (select-values expected-events) basic4)
                    actual   (:result (raw-resource-events-query-result
                                        version
                                        [">" "timestamp" 0]
                                        {:order-by [[:line order]] :offset offset}))]
                (is (= actual expected))))))))))

                 [:containing-class nil                                 [3]]]]
          (testing (format "'not' query on field '%s'" field)
            (let [expected  (expected-resource-events
                             (kitchensink/select-values basic-events-map matches)
                             basic)
                  query     ["not" ["=" (name field) value]]
                  actual    (resource-events-query-result version query)]
              (is (= actual expected)
                  (format "Results didn't match for query '%s'" query))))))

      (testing "regex queries"
        (doseq [[field value matches]
