diff --git a/product/ERP5Type/tests/testXMLMatrix.py b/product/ERP5Type/tests/testXMLMatrix.py
index 37382e8febff0b199a314abcde8698805f490aff..67f3071988f586a5452d38944547923253f39780 100644
--- a/product/ERP5Type/tests/testXMLMatrix.py
+++ b/product/ERP5Type/tests/testXMLMatrix.py
@@ -40,6 +40,7 @@ try:
 except ImportError:
   pass
 
+
 class TestXMLMatrix(ERP5TypeTestCase):
   """
   Tests the Cell API
@@ -179,6 +180,11 @@ class TestXMLMatrix(ERP5TypeTestCase):
         self.assertEqual(getattr(cell, 'test_id', None), value_list[i])
       i += 1
 
+    # now commit transaction to make sure there are no activities for cells
+    # that no longer exists.
+    get_transaction().commit()
+    self.tic()
+
   def checkSetCellRangeAndCatalog(self, active=1):
     """
     Tests if set Cell range do well catalog and uncatalog