Improve test for migration