fix index tests