Re: How to test if your MAF is bad (marriedblonde)
Well, it certainly sounds like a boost leak somewhere... I'll be honest with you, I am not too well versed in the workings of the 1.8Ts. Check the data blocks as Knockwurst suggested, and see if that yields anything. You could try my cleaning procedure as BORA_WE suggested, but if you are under warranty I would only use that as a last ditch attempt. Another place to post this question would be in the 1.8T forum, perhaps you will find more answers there.
The reason I don't think the MAF is at fault is because you say the car goes into limp mode after 4000 rpms. With the 2.0s and the VR6s the MAF failure leads to limp mode immediately. Symptoms of this are that the engine is running lean, it is idling rough, and as you've noticed lack of power.
Wish I could give you a more definitive answer, sorry.