TST: unittest for @with_tempfile