diff --git a/Changelog.md b/Changelog.md
--- a/Changelog.md
+++ b/Changelog.md
@@ -1,3 +1,8 @@
+# 1.4.1
+
+* Allow newest version of persistent
+* Fix some warnings in the test suite
+
 # 1.4.0
 
 * Add proper support for i18n:
diff --git a/tests/BasicTests.hs b/tests/BasicTests.hs
--- a/tests/BasicTests.hs
+++ b/tests/BasicTests.hs
@@ -45,7 +45,7 @@
 
             post' "/auth/page/account/resetpassword" $ do
                 byLabel "Username" "abc"
-                addNonce
+                addToken
 
             statusIs redirectCode
             get' "/"
diff --git a/tests/NewAccount.hs b/tests/NewAccount.hs
--- a/tests/NewAccount.hs
+++ b/tests/NewAccount.hs
@@ -37,7 +37,7 @@
             bodyContains "Register"
 
             post'"/auth/page/account/newaccount" $ do
-                addNonce
+                addToken
                 byLabel "Username" "abc"
                 byLabel "Email" "test@example.com"
                 byLabel "Password" "xxx"
@@ -53,7 +53,7 @@
             statusIs 200
 
             post'"/auth/page/account/newaccount" $ do
-                addNonce
+                addToken
                 byLabel "Username" "abc"
                 byLabel "Email" "test@example.com"
                 byLabel "Password" "xxx"
@@ -94,7 +94,7 @@
 
             -- resend verify email
             post'"/auth/page/account/resendverifyemail" $ do
-                addNonce
+                addToken
                 addPostParam f1 "abc" -- username is also a hidden field
             statusIs redirectCode
             get' "/"
@@ -136,7 +136,7 @@
             bodyContains "Send password reset email"
             post'"/auth/page/account/resetpassword" $ do
                 byLabel "Username" "abc"
-                addNonce
+                addToken
             statusIs redirectCode
             get' "/"
             statusIs 200
@@ -150,7 +150,7 @@
             get' newpwd
             statusIs 200
             post'"/auth/page/account/setpassword" $ do
-                addNonce
+                addToken
                 byLabel "New password" "www"
                 byLabel "Confirm" "www"
                 addPostParam f1 "abc"
@@ -163,7 +163,7 @@
             statusIs 200
             matches <- htmlQuery $ "input[name=" <> f2 <> "][type=hidden][value]"
             post'"/auth/page/account/setpassword" $ do
-                addNonce
+                addToken
                 byLabel "New password" "www"
                 byLabel "Confirm" "www"
                 addPostParam f1 "abc"
@@ -194,7 +194,7 @@
             statusIs 200
 
             post' "/auth/page/account/newaccount" $ do
-                addNonce
+                addToken
                 byLabel "Username" "x.y"
                 byLabel "Email" "xy@example.com"
                 byLabel "Password" "hunter2"
diff --git a/yesod-auth-account.cabal b/yesod-auth-account.cabal
--- a/yesod-auth-account.cabal
+++ b/yesod-auth-account.cabal
@@ -1,5 +1,5 @@
 name:              yesod-auth-account
-version:           1.4.0
+version:           1.4.1
 cabal-version:     >= 1.8
 build-type:        Simple
 synopsis:          An account authentication plugin for Yesod
@@ -38,7 +38,7 @@
                  , mtl               >= 2.1
                  , nonce             >= 1.0
                  , text              >= 0.11
-                 , persistent        >= 1.3        && < 2.2
+                 , persistent        >= 1.3        && < 2.3
                  , pwstore-fast      >= 2.0
                  , yesod-auth        >= 1.2        && < 1.5
                  , yesod-core        >= 1.2        && < 1.5
