Test a doc file