Avoid calling EntityTransaction.flush() in AbstractServerTest.flush() method when transaction is not active.