#3082 fixed headers output error in tests