Synchronized method getEntityManager() in DAO as different threads were closing other threads' EntityManagers
Added Thread test for entitymanager in DAO