Move deprecation warnings into test fixture