Add unit test for #2142

4 jobs for fix-oidc-consent-2fa-2142 in 16 minutes and 39 seconds (queued for 4 seconds)