Fixed split_hdf_to_segments_test after refactoring