fixed millisecond aggregator, consistent align sampling, added tests to RangeAggregatorTests