need to combine test and index