Added paren unit tests, fixed right paren function