add test case for migration