checkbox: Write tests on templates

Close #775