Make adding implied root nodes optional to fix tests