Test of the validity of the adiabatic approximation in scattering theory