Add tests for 3D reductions.