Added tests for Min, Max, Sum and Count