update migrator with package import. update test case