Fix file fields in tests