[template] fixed test failure introduted from #8585