Added tests for groupBy. Now verify that datapoints are deleted.