Fix rendering page roots.

Note: removed a unit test which was erroneous.