Add test for and fix parentheses attributes