Add testcase for PR16134, which no longer crashes with ToT.