added template test for header and query