Hmm, the caps (at least the ones used on the 81-> bikes, I'm not sure of the earlier ones) vent internally through openings in the stamped metal "screw" body of the cap up into the body that holds the lock/tumbler, andpresumably out through the keyhole. I don't know of a test for it except that if you start to unscrew it after you've ridden some distance and used up some fuel and hear a great sucking sound, it likely isn't venting.
There is a method one can effect a "fix" by taking a SMALL drill bit and making a short drilled hole in the top of the cap - somewhere on this forum or elsewhere on the internet is a picture of this - will look...
But, before I drilled my gas cap, I'd look/check some of the other culprits first (unless I'd experienced that vacuum sound several times)