Cabs actually have more stringent MOT tests than private cars do and have them more often. I'm not sure where your idea of 'filthy worn-out' engines comes from.
I understand that diesel engines and particulate emissions are a big problem in London at the moment but cabs are hardly going to be the worst offenders here.