Fix tests errors caused by the data migration.