Imporoperly adding nodes in test