Adding a test for the behavior added by ce2b17e and 258a21d.