Implement ReduceActor and its testing