Renamed missleading param name offest to active index

And added an other test unit