Add header templating hooks to tests