diff --git a/product/ERP5/tests/testAccountingRules.py b/product/ERP5/tests/testAccountingRules.py
index 6f2c166101b670e49912ad1ef839b8bd12a2bc3f..ec4872b81aa90985063eaef3de12e944440cac7f 100644
--- a/product/ERP5/tests/testAccountingRules.py
+++ b/product/ERP5/tests/testAccountingRules.py
@@ -205,7 +205,8 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
     invoice_transaction_rule.deleteContent(
                 [x for x in invoice_transaction_rule.objectIds()])
     self.assertEquals(len(invoice_transaction_rule.objectValues()), 0)
-    
+    get_transaction().commit()
+
     # and add new content, predicate product_line
     predicate_product_notebook = invoice_transaction_rule.newContent(
       id = 'product_notebook',
diff --git a/product/ERP5/tests/testInvoice.py b/product/ERP5/tests/testInvoice.py
index 9b2e188678f9b8d1e1803f9838ece2641d832da6..fcfc336219fa775215d560f5960ade9d3b2a50cc 100644
--- a/product/ERP5/tests/testInvoice.py
+++ b/product/ERP5/tests/testInvoice.py
@@ -177,6 +177,8 @@ class TestInvoice(TestPackingListMixin,
     
     invoice_rule.deleteContent([x.getId()
                           for x in invoice_rule.objectValues()])
+    get_transaction().commit()
+    self.tic()
     region_predicate = invoice_rule.newContent(portal_type = 'Predicate')
     product_line_predicate = invoice_rule.newContent(portal_type = 'Predicate')
     region_predicate.edit(