Added Grouping unit test, extended Reduce integration test, added JavaDocs to ReduceFunction