Adding EntityManager with some tests