Fixed a bug in removeChildren and added unit test for lastChild, removeChildren, removeAllChildren