ok, sono riuscito a risolvere il problema. dovevo allocare la memoria ai nodi nel test.
Regole del Forum