added two tests and getters for nodes