Added tests to tempfile