The presence of a Catalytic Converter and/or a DPF (Diesel Particulate Filter) is indeed now a requirement for an MOT. So yes, if the vehicle has a clearly modified straight through pipe in place of a Cat/DPF it will fail.
However, if the existing Cat/DPF has signs of tampering, ie cut open and...