Added node.learn() convenience method and test