Add test for migration task