Made index test also async