Added MigrationManager tests and fixed a bug in MigrationManager