add implementation for index tests