More tests, two small fixes

allow multiline continuations of header lines, and fix folding