Head lights flickering

The flickering lights might from a failing rectifier in the alternator. The rectifiers convert AC voltage to DC voltage. When a rectifier fails, it allows an AC ripple voltage into the vehicles electrical system causing the lights to flicker. When having the battery/charging system tested, have them measure for AC voltage at the battery. If any amount of AC voltage is measured at the battery it indicates a failed rectifier in the alternator

Tester