Added a check for rval function closing parenthesis + 2 unit tests
Merge pull request #584 from basvandervlies/rval_function_forgot_cp

Added a check for rval function closing parenthesis + 2 unit tests