Add a test case for PR1271 (necessary, but not sufficient).