switch test index