Templates performance: run segments changes in bulk mode
fix test