The rigorous testing is designed to serve a manifest function (measuring learning outcomes), but it also generates a dysfunction (student mental health problems), illustrating that a social structure can simultaneously produce intended benefits and unintended harms.