refactor header tests