Fixed a bug while moving the node to a new parent and the @NodeName has not been defined in the document
Added unit tests
Merge pull request #513 from asiragusa/master

Fixed a bug while moving the node to a new parent and the @NodeName has ...