added explicit connection to node factories

the StubParent class can be removed, since it only provided a
_connection property for the node factories