Add test for PR1996. (This is my first time adding a test for a