Adds new backup_attributes context manager for tests
#1948
Closed
backup_attributes context manager for tests
#1948