add test for parentheses problem