Fixed a test for bug #8365.