Fix test for Trac #7931