Tests for the brace checking method.