add test for #7719
Fix System.Timeout.timeout leaking Timeout exceptions (#7719).