I failed 2 times for a bad gas cap. Once after wasting money on a new OEM one. I had to deal with DMV and then call back the testing shop, who called the software maker only to find out that the pressure test instructions and adapter listed in their latest version for the 300zx was wrong.
Wasted a few hours of my life and $30 but I was still happy when I passed.