Test particle correlation by a whistler wave in a nonuniform magnetic field