fix tests - it will select the last x index always in this case