Thank you for your comment.
And I noticed tmp_dir attibute of test, but I had not thought a proper method to use it.

How about get the tmp_dir from **dargs in __init__ of class connection, 
if ok, set the tmp_dir: self.dict_set(darges.get("tmp_dir")).
if fail, make tmp_dir like what the utils_conn was doing.