Wrong Alternator?

This morning I tested the battery and the alternator. Both were good, so I did the "jiggle the wires test". When I jiggled the wires my wife said the altmeter was bouncing. It turns out the green wire's female connector was loose. The wire came loose from the connector when I tried to remove it. Also, the small bolt holding the male connector to the alternator was loose.