changed the way to create the entity manager instance in tests
removed doctrin/orm from dev requirements