diff --git a/tests/ChangePasswordLogged.hs b/tests/ChangePasswordLogged.hs
--- a/tests/ChangePasswordLogged.hs
+++ b/tests/ChangePasswordLogged.hs
@@ -6,6 +6,13 @@
 import Foundation
 import qualified Data.Text as T
 
+redirectCode :: Int
+#if MIN_VERSION_yesod_test(1,4,0)
+redirectCode = 303
+#else
+redirectCode = 302
+#endif
+
 -- In 9f379bc219bd1fdf008e2c179b03e98a05b36401 (which went into yesod-form-1.3.9)
 -- the numbering of fields was changed.  We normally wouldn't care because fields
 -- can be set via 'byLabel', but hidden fields have no label so we must use the id
@@ -31,7 +38,7 @@
                 byLabel "Password" "xxx"
                 byLabel "Confirm" "xxx"
 
-            statusIs 302
+            statusIs redirectCode
             get' "/"
             statusIs 200
             bodyContains "A confirmation e-mail has been sent to tst@example.com"
@@ -52,7 +59,7 @@
             post'"/auth/page/account/resendverifyemail" $ do
                 addNonce
                 addPostParam f1 "aaa" -- username is also a hidden field
-            statusIs 302
+            statusIs redirectCode
             get' "/"
             bodyContains "A confirmation e-mail has been sent to tst@example.com"
 
@@ -63,13 +70,13 @@
 
             -- verify email
             get' verify'
-            statusIs 302
+            statusIs redirectCode
             get' "/"
             statusIs 200
             bodyContains "You are logged in as aaa"
 
             post $ AuthR LogoutR
-            statusIs 302
+            statusIs redirectCode
             get' "/"
             statusIs 200
             bodyContains "Please visit the <a href=\"/auth/login\">Login page"
@@ -79,7 +86,7 @@
             post'"/auth/page/account/login" $ do
                 byLabel "Username" "aaa"
                 byLabel "Password" "xxx"
-            statusIs 302
+            statusIs redirectCode
             get' "/"
             bodyContains "You are logged in as aaa"
 
@@ -92,7 +99,7 @@
                 byLabel "New password" "www"
                 byLabel "Confirm" "www"
                 addPostParam f1 "aaa"
-            statusIs 302
+            statusIs redirectCode
             get' "/"
             statusIs 200
             bodyContains "Password updated"
@@ -105,7 +112,7 @@
             post'"/auth/page/account/login" $ do
                 byLabel "Username" "aaa"
                 byLabel "Password" "www"
-            statusIs 302
+            statusIs redirectCode
             get' "/"
             statusIs 200
             bodyContains "You are logged in as aaa"
@@ -117,5 +124,3 @@
         yit "cannot change password while logged out" $ do
             get' "/auth/page/account/newpasswordlgd"
             statusIs 403
-
-
diff --git a/tests/NewAccount.hs b/tests/NewAccount.hs
--- a/tests/NewAccount.hs
+++ b/tests/NewAccount.hs
@@ -145,7 +145,7 @@
             post'"/auth/page/account/login" $ do
                 byLabel "Username" "test@example.com"
                 byLabel "Password" "xxx"
-            statusIs 302
+            statusIs redirectCode
             get' "/"
             bodyContains "You are logged in as abc"
 
diff --git a/yesod-auth-account-fork.cabal b/yesod-auth-account-fork.cabal
--- a/yesod-auth-account-fork.cabal
+++ b/yesod-auth-account-fork.cabal
@@ -1,5 +1,5 @@
 name:              yesod-auth-account-fork
-version:           2.0.1
+version:           2.0.2
 cabal-version:     >= 1.8
 build-type:        Simple
 synopsis:          An account authentication plugin for Yesod
@@ -81,4 +81,4 @@
                  , yesod         >= 1.2 && < 1.5
                  , yesod-test    >= 1.2.1.5
                  , yesod-auth    >= 1.3.3 && < 1.5
-                 , yesod-auth-account
+                 , yesod-auth-account-fork
