Update readRules for 3D
More tests