testing template logic