seg2: add a test to check parsing of SEG2 headers