Added 8 unit tests (5 for printNode, 3 for modifyR)