index and index tests