Index: /main/waeup.kofa/trunk/src/waeup/kofa/students/tests/sample_studycourse_data.csv
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/students/tests/sample_studycourse_data.csv	(revision 7952)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/students/tests/sample_studycourse_data.csv	(revision 7953)
@@ -4,2 +4,3 @@
 ,100002,CERT1,2008,200
 1,,CERT1,2008,100
+4,,CERT1,2008,200
Index: /main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py	(revision 7952)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py	(revision 7953)
@@ -388,4 +388,13 @@
         self.assertEqual(studycourse.current_verdict, 'A')
         self.assertEqual(student.state, 'returning')
+        pending_file = fail_file
+        content = open(fail_file).read()
+        self.assertEqual(
+            content,
+            'current_session,current_verdict,matric_number,current_level,--ERRORS--\r\n'
+            '2008,B,100001,100,Current level does not correspond.\r\n'
+            '2007,C,100002,200,Current session does not correspond.\r\n'
+            '2008,A,100003,200,Student in wrong state.\r\n'
+            )
         shutil.rmtree(os.path.dirname(fin_file))
 
