Test a file