Fix template spec tests