test on outfile + debug output