Fix file mode of test files