Unit tests the iterative migration in ContextManager