99 chevy p/u

99 chevy p/u
The battery light comes on and the gauges drop to zero intermittantly.  The voltage gauges is showing about 16.  I tested the battery and the altenator and they’re both good.  It’s as if there’s a loose connection that makes it randomly cut in/out but I’ve checked for that.