Fix deprecation warning in test fixtures.