A loose cap will cause lean mixture faults. BUT your description on checking vacuum on the cap with running is spot on for a quick CCVV check.