add test case for granularities not aligned with segment boundaries
fix cursor overshooting granularity boundaries in IncrementalIndexStorageAdapter as well