Add tests for 3D reductions.
Add reduction to the test target.