Fixed tests of migration commands.