Inside Mattel’s sprawling test lab here, scores of technicians are doing their worst: setting Chicken Dance Elmo dolls on fire, wrecking Hot Wheels cars and yanking at the limbs of Dora the Explorer.