Add tests for new-style header lines

Testing is needed because we now read and parse this line by hand.