some UT for templateDao