Fixed bug in NodeFactory function

The parseRdfTerm erroneously used only the first character of a blank
node label as label string.
Added tests for NodeFactory