Unit test for mk_tmpfile