Fix file upgrade tests.