This PR adds a test for the goals accomplished diagnostics so that we notice when they break. Follow-up for #8242.