added test to read and write 3D CT image