Fix migration for tests