Delegate reduce and add tests.