Modified test for #7985