Add a test case for PR15318 fixed in r177472