Add a test for reductions