more tests from edumont
added parenthesis handling