Added tests for ui.template.