Improvements to the phase transition test