Added unit tests for migrate, 50%