extract setting headers to common base
fix headers tests