changed test to index