TST: the function to compute the posterior distribution of nodes is now correct