Add tests for deprecated attributes