Tests for the header internals.

These are now pretty comprehensive.