[ui] Fix tests - fail safe in template parts rendering.