Added more unit tests for ui_template.