client-test: do both fclose() and unlink()