test note_marginals added