menu-item: Write tests on templates

Close #780