Add and test reduce