You would have to assume that by 'automatically failing', the test would involve checking the software version, and if it's not updated, the car instantly fails the test.
I can't imagine a test centre knowingly passing a car which has been shown to cheat on tests.