Root nodes stored in header.
Tests fixed.