Added test for Distinct and Count actions. Changed max retention period in ES.