Ensure the files are writable before deleting then during test initialization.

This solves cleanup issues when tests have failed and leave behind read-only files.
Merge pull request #437 from rjemanuele/fix_unlink_after_failed_tests

Ensure the files are writable before deleting them during test initialization.