Detection or location of defective auxiliary circuits, e.g. defective refresh counters {with adaption or trimming of parameters}