A woman accused of hiding needles in strawberries may have wanted revenge, a court hears.