add tests for header merging