tested writing of 4d dataset for modular detectors