Added test for migrating again
Added more assertions, and defaults for pending migrations