bugfix in test_migration.test_engine: should alter a copy of the class, not the class directly