Refactor PageHeader tests