Easy to get frustrated with these cars at times, and a few weeks ago you were teetering on that edge - well maybe leaning is a better way of putting it :-D
You must have a great sense of satisfaction after figuring this out. Best of luck with the emissions test - I'm sure you'll pass this time with flying colors.