Tests for the purity of the initial ensemble of states in scattering experiments