Factored out assertAlive and assertDead into base class.