The answer is; "He should have helped me cheat on a test when I asked him."
In childhood, some children do this kind of things just to take revenge as they did not know about the side effects or what happened after doing such kind of things. His friend or classmate did not helped him in a test so that is why he gave a snack to him to take revenge because he is known to his peanut allergy.