Merge pull request #2 from dkellner/master

"semi-automatic" testing
use mktemp for temporary selftest files