Add test for #2253

Just so we have some guard against running into it again.