added test for date index and util to compute grainTs