Tweaked testing code and fixed 1 bug

The root node is now being correctly instantiated