The O2 has 2 parts one part heats it up the other part is the sensor. The heater part can go bad while the sensor can be good. So that is one way the O2 can be bad and the ecu wouldn't know. If the heater was bad you would have bad idle until the motor was driven and warmed up. Keep that in mind when you do the unplug test on the o2