added tests for migrate.before