resetting test index