Added write/read tests for hdf5 in tests/complex.R