fix some specs for index related functions
spec updates