Added tests for aggretation