Test Trac #7865