test a migration sequence, and bugfixes in migration class