refactoring HeaderTest