Implementation of the DetectorGeometry test (magpropagate)