Perhaps that something has gone wrong, since, if the teacher still intends to give an exam, it will not be a surprise: they may therefore fall into doubt and say, 'Look, maybe the teacher isn't intending to give us an exam now; maybe he's changed his mind.'