Fixed migrations tests added in refs #23315.