select: Write tests on templates