Implemented and tested StatefulAggregate base class