moved entities to EntityManager. created MockEntityManager