t/testc.sh: shorter testcase for issue 310

Warning: unable to close filehandle DATA properly