OBD stands for On Board Diagnostics. If the check in light is on, there most be code in the ECU memory. Find some place like AutoZone that will read the codes for free, then post back.
Most likely the car failed because the ODB system had tripped the check engine light.
Most likely the car failed because the ODB system had tripped the check engine light.