Rewrite test and simple template test.