final unittests for migration code paths