dropdown: Write tests on templates

Close #777