Move some test conditions from body to parameters
Instead of testing in the test body whether the template is a redirect
or ambiguous template or not, only call the test with such template
names in the first place. This reduces the number of test cases from
11036 to 10767.