more complicated template test cases