modified test cases of link list bracket matching