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
small thing: 'firstchild' should be 'firstChild' (and followed by a comma)