Later, Tom testified against John so as to avoid the electric chair.
Tom was willing to speak against the other man to avoid his own execution.
Tom refused to turn on his friend, even though he was slated to be executed.