Although I didn't read. I'd assume and hope they had some basic controls in place like an untrained worm decapitated and also a trained worm non decapitated
The experiment does not sound too good to me. They had to retrain the formerly decapitated worms. The article does not mention how much faster the "refresher course" trained the decapitated worms.