fix index test