Likewise at a macro scale, if Earth's atmosphere becomes inhospitable because of global nuclear war or a big asteroid collision, then the new "test for life" is adapting to the radioactive dust cloud. Keep mutating across generations until survivors can thrive.