Added aggregated score functionality with tests