Fixed errors in template's test