added scan index test