Add a test to go with the fix for 18260