Tune the offsetmanager and add initialoffset to OffsetManagerTest