update specs to open_tmp_file usage