Added: Setting return type in aggregate function methods in Manager
class.
Added: Tests for aggregate functions.