TST: Make hdf use tempfiles too