Remove unused inheriting var, protect shared nextId, merge node tests.