BS-2327: Simplify test to check that the transaction of Hibernate is not
the good one