fixed Javadoc
tests for refernced nodes