ALtered indices and wrote tests