Improve connection and configuration tests for the EntityManager