Add test cases for brace mismatch