menu: Write tests on templates

Close #779