Add test for #16622 as of a6de6f5

cc @chancancode 
I mean, we could.. but there are plenty of config tests here that don't. So I figured they were trying to avoid polluting the ENV namespace