Use tmp_path instead of tempfile in ElementMixin tests
Quick cleanup made while working on !115 (merged): tempfile and os.unlink were used instead of letting pytest deal with temporary files itself, which sometimes caused a mess in /tmp.
Edited by Erwan Rouchet