fixed failing unit test in because I tried to see if picking a random nodeif all the nodes are dead over picking the one thats dead longest would work better in practice