Added tests for mixed balanced parentheses