Providing the egr valve and pipe work are there or appear to be and the engine is working ok it should pass, the operation of the valve is not checked, mine was never fitted with one and passes, its only to help when the engine is cold.
Also check the engine earth strap by the passenger side engine mount they are known to corrode they my look ok but go under the insulation.
can be checked with a jump lead from battery - to engine.
For the egr valve pull the vacuum hose off and plug the pipe with a bolt and you will not have any more problems with it as it will not work anymore and clog the engine with junk :vb-biggrin:
Just connect them together and see how it goes if no more leaks then you have sorted it and can leave like that or alter pipe work to reduce possible leak points.
The pipe from the turbo to the intercooler is known to delaminate inside restricting the pipe looks ok from out side but pipe feels squidgy mine did it fine when not driving but under load it made a big bubble inside that rather restricted the flow.
This is the part number for the Gates pipe, GATES 3225-00070
i often put a small cable tie on the end pulled up tight once in position but the cheep pipe still seems to sweat through the pipe.
theceep stuff is almost a six monthly service item :(