Fix file tests