Improved opening/closing of files in HDF5 tests (use of context manager wherever possible)
Merge pull request #691 from astrofrog/io/minor-hdf5-io-fixes

Improved opening/closing of files in HDF5 tests