The only valid way to test is replace with a known good unit. If it doesn't rev over 2200 RPM, it's the AF meter. Replaced hundreds of them for this problem and the AIV valve is what trashes them. It's the silver valve on the drivers fender near the AF meter. Again reading the codes is a waste of time and money. It's going to tell you the crank angle sensor is bad and that isn't what's wrong.