test for template and params query