Added the testing to check if the aggregates are correct or not.