More refactoring of UDDF::Base

Added add_nodes method, which takes either a Hash, Array, or String and converts it into nodes.
update test_helper.rb