make DatbaseTestcase EntityManager injectable
dispatch an event when an new entityManager is disposed in Doctrine Module