Add test case with relative template construction