Unit tests for removeNode

Also fixes a small problem with the node Id's that were passed into the HTML