Forgot to close hdf5 file in a test