Added test for createQuery in EntityManagerTest