On the estimation of directed acyclic graph models with one hidden variable