Refactors test headers for each request