     (is (validation/has-error? transaction :items) "Validation error should be present")))
 
 (deftest item-action-is-required
-  (let [transaction (transactions/create
+  (let [context (test-context)
+        attributes (:attributes context)
+        transaction (transactions/create
                       storage-spec
                       (update-in attributes
                                  [:items 0]

    (is (validation/has-error? transaction :items))))

(deftest item-amount-is-required
  (let [transaction (transactions/create
                      storage-spec
                      (update-in attributes
                                 [:items 0]


; TODO Need to create the accounts for each test instead of once
(deftest item-indexes-are-set-when-saved
  (let [context (test-context)
        attributes (:attributes context)
        accounts (:accounts context)
        transaction (transactions/create
                      storage-spec
                      attributes)
        salary-item (->> transaction
