Bracket highlighter: use sensible exception name instead of UserWarning
Tests: fix bracket highlighter test