merge test and index