added null index test