EZP-22563: added unit tests
Fix EZP-22563: Single line break is lost on headers