diff --git a/product/ERP5Banking/tests/TestERP5BankingMixin.py b/product/ERP5Banking/tests/TestERP5BankingMixin.py
index 582593a3c7db62f1df23fabcd65b132cf76c451a..b07207f03a50dacd9b1f4a6cb4be37a32a1000ac 100644
--- a/product/ERP5Banking/tests/TestERP5BankingMixin.py
+++ b/product/ERP5Banking/tests/TestERP5BankingMixin.py
@@ -448,7 +448,8 @@ class TestERP5BankingMixin:
                                           price_currency_value = currency)
     # validate this bank account for payment
     bank_account.validate()
-
+    if amount == 0:
+      return bank_account
     # we need to put some money on this bank account
     if not hasattr(self, 'bank_account_inventory'):
       self.bank_account_inventory = self.bank_account_inventory_module.newContent(id='account_inventory',
@@ -458,11 +459,14 @@ class TestERP5BankingMixin:
                                                                                 stop_date=DateTime().Date())
 
     account_inventory_line_id = 'account_inventory_lien_%s' %(self.account_inventory_number,)
-    self.bank_account_inventory.newContent(id=account_inventory_line_id,
+    inventory = self.bank_account_inventory.newContent(id=account_inventory_line_id,
                                            portal_type='Bank Account Inventory Line',
                                            resource_value=currency,
                                            destination_payment_value=bank_account,
                                            inventory=amount)
+
+    # deliver the inventory
+    inventory.deliver()
     self.account_inventory_number += 1
     return bank_account
 
@@ -495,6 +499,7 @@ class TestERP5BankingMixin:
     check.confirm()
     return check
 
+
   def createCashInventory(self, source, destination, currency, line_list=[]):
     """
     Create a cash inventory group
@@ -534,10 +539,12 @@ class TestERP5BankingMixin:
                                  line['variation_id'],
                                  line['variation_value'],
                                  line['quantity'],)
+    # deliver the inventory
+    inventory.deliver()
+    #self.workflow_tool.doActionFor(inventory, 'deliver_action', wf_id='inventory_workflow')
     return inventory_group
 
 
-
   def addCashLineToDelivery(self, delivery_object, line_id, line_portal_type, resource_object,
           variation_base_category_list, variation_category_list, resource_quantity_dict):
     """