test for valid header line format
test header line name against filename
consistency nit
Merge pull request #7568 from rolandwalker/add_header_tests

Add tests for new-style header lines