replacing index with test
bracket2 -> bracket