Added "unlink(filename)" to automatic tests for keeping /tmp clean.

Fixes issue #1613.