Fixed bug which occured when running the tests in datasets/tests/test_hdf5.py