Fixed bug when inserting.
testInsertNodeEnd and insertNodeEnd