Fixed reverse test execution for migration manager tests

Thanks to Tim Graham for reporting the issue. Refers #23822