tests: make headers as indipendent function