                                       data)]
           (is (= 400 status))))
 
-      (testing "Insufficient user rates"
+      (testing "Missing user rates"
         (let [user-id (first user-ids)
               data    {:client "foo"
                        :start (- current-time (* 60 60 24))
-                       :end current-time
+                       :end (+ current-time (* 60 60 24))
                        :address "baz"
                        :notes "quux"
                        :user-rates [{:user-id user-id
-                                     :rate    3}]
+                                     :rate    nil}]
                        :utc-offset 330
                        :currency :inr
                        :tax-rates nil}

                                      invoice-url
                                      "gid1"
                                      data)]
          (is (= 200 status))))

      (testing "Client does not exist"
        (let [data                  {:client "quux"

      (testing "Another client with no timers"
        (let [data                  {:client "bar"
                                     :start (- current-time (* 60 60 24))
                                     :end (+ current-time (* 60 60 24))
                                     :address "baz"
                                     :notes "quux"
                                     :user-rates (vec (for [user-id user-ids]
