Added test case for template export.