Be able to add node as first child and add tests for addNode

I need to add node as first child and I think it should be a supported option