add tests for parsing nested custom headers