When I took my test there were "guaranteed fail" things (like clipping the kerb), but I assume a degree of flexibility exists for some of the lesser concerns
Whether there is a central policy / DVLA level view of leniency, I would doubt. But there may be some unspoken encouragement, eg local test offices may have targets that would encourage lenient behaviour in examiners