Added node self-referencing and tests.
Tree node associations working and tested.