Numerical tests of the electroweak phase transition and thermodynamics of the electroweak plasma