test_brackets correctly passes text as name of index