fix test became invalid: if node is deleted and reference is checked inside of the same command, the reference is not broken. That's the reason why UnregisteredNodes class was created