My workaround was to activate transaction synchronization before running the test case by adding the following line in the front of your test method:
TransactionSynchronizationManager.initSynchronization();