Using a vacuum pump, apply vacuum to the EGR valve at idle. If it dies, its working properly.. if it doesnt die then your valve may not be working or the passages are clogged.

If it does die and your car is throwing an EGR code, its likely that the EGR VSV is bad or not hooked up correctly. what year is it?