Fixed handling of HDF5 tests.