Suppress deprecated warning in tests.