Fixed unit tests. Call activate() after fetching entity from
EntityManager.
activate() is now public for unit test support