Tests for heading nesting.