First, Im glad I dont live in VA...Ive never even heard of "safety inspections." Though, I must say, not a terrible idea.
Im no mechanic...but here's my thoughts.
One, your talking about a 4cyl. Im not sure the car is worth these problems youre having. Not to say you should reconsider...thats up to you. But it seems like the car has a pretty serious problem.
I am however, electrically inclined. Electrical problems are pretty serious deals...especially when you have somewhat exhausted the obvious fixes. My buds '51 Ford caught fire last week due to what seemed initially like a MILD electrical issue.
If youre serious about purchasing this car, I would spend the extra money and take it to a dealership. DONT FIX IT THERE! Just have them check it out. As much as I hate the dealers...for the diagnostic piece...they are really the best bet because they know the cars better than joe-mechanic would.
To be frank, Im surprised this car has ABS on it...and I think this may be the safest way to really resolve the issue.