Code For Tests Used in "Liveness with Invisible Ranking"