Index: main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
===================================================================
--- main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py	(revision 8305)
+++ main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py	(revision 8307)
@@ -1414,5 +1414,6 @@
                            self.browser.contents)
 
-        # Students can add online school fee payment tickets
+        # Students can add online school fee payment tickets.
+        IWorkflowState(self.student).setState('returning')
         self.browser.open(self.payments_path)
         self.browser.getControl("Add online payment ticket").click()
@@ -1426,6 +1427,8 @@
         self.assertMatches('...Amount Authorized...',
                            self.browser.contents)
-        # Payment session and level have been calculated as defined
-        # in w.k.students.utils
+        self.assertEqual(self.student['payments'][value].amount_auth, 40000.0)
+        # Payment session and will be calculated as defined
+        # in w.k.students.utils because we set changed the state
+        # to returning
         self.assertEqual(self.student['payments'][value].p_session, 2005)
         self.assertEqual(self.student['payments'][value].p_level, 200)
@@ -1453,6 +1456,4 @@
 
         # The new SFE-0 pin can be used for starting course registration
-        IWorkflowInfo(self.student).fireTransition('request_clearance')
-        IWorkflowInfo(self.student).fireTransition('clear')
         self.browser.open(self.studycourse_path)
         self.browser.getLink('Start course registration').click()
