Test in rails 4.2 and use public_send instead of send

using a private method  for ```sum``` and ```aggregate_by``` should raise.