Test a file from source