Deleting children doesnt cause parents to become infertile.

Fixes #4. Fixes are also in the implementation of the testapp.js to
make sure it doesn't reset the children node.