Add simple parsing of header strings for tests.