Create template: R from ambiguous term/testcases