ENH: Referenced Nodes: added more tests fixed events implementaion