Avoid deprecated function in test for bug 881445