diff --git a/product/ERP5/tests/testERP5Credential.py b/product/ERP5/tests/testERP5Credential.py
index 39b8cb15059f095ab434f786a3e539aa51e91222..a6bb21fe875a40e8f0ace9507b969fb1189aea2f 100644
--- a/product/ERP5/tests/testERP5Credential.py
+++ b/product/ERP5/tests/testERP5Credential.py
@@ -579,6 +579,7 @@ class TestERP5Credential(ERP5TypeTestCase):
 
     # associate it with barney
     credential_recovery.setDestinationDecisionValue(person)
+    credential_recovery.setReference(person.getReference())
     sequence.edit(credential_recovery=credential_recovery)
 
   def stepRequestCredentialRecoveryWithERP5Site_newCredentialRecovery(self,
@@ -668,10 +669,10 @@ class TestERP5Credential(ERP5TypeTestCase):
     self.assertEqual(barney.getDefaultEmailText(), send_to)
 
   def stepCheckPasswordChange(self, sequence=None, sequence_list=None, **kw):
-    '''
+    """
       check it's possible to change the user password using the link in the
       email
-    '''
+    """
     # get the url
     last_message = self.portal.MailHost._last_message
     rawstr = r"""PasswordTool_viewResetPassword"""