Added test cases for parentheses in character classes