AS7-6786 Hibernate test cases do not close the session factory