Remove unused test code
Fix wrong conditional that made deletion within root node crash