update template and test