handle node lists, added tests
Merge pull request #1 from ianstormtaylor/nodelist

handle node lists, added tests