select: Write tests on templates

Close #783 
или тут, да