Add a test for reductions based on the min function